package com.yuhang.zhimitest.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * created by zhangyuhang on 2018/6/20
 */
@Controller
public class HelloController {
//aasdad
    @ResponseBody
    @RequestMapping(value = "hello")
    public String test(){
        return "Hello World";
    }

    @ResponseBody
    @RequestMapping()
    public String notest(){
        return "my name is yuhang";
    }
    //1
}
